
import database.DBClass;
import java.sql.SQLException;
import java.util.List;
import model.Kipmol;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Dell
 */
public class test {

    public static void main(String args[]) 
            throws SQLException, ClassNotFoundException {
        DBClass db = new DBClass();
        List list2 = db.getAlldetails();
        if (list2 != null) {
            for (int i = 0; i < list2.size(); i++) { //ambil perbaris dari list terus dimasukkan di ke kolom dalam tabel
                Kipmol ubean = (Kipmol) list2.get(i);
                System.out.println(ubean.getNIKPemohon());
            }
        }
    }
}
